<%= error_messages_for 'worklog' %>

<!--[form:worklog]-->
<p><label for="worklog_done_at">Done at</label><br/>
<%= datetime_select 'worklog', 'done_at',:minute_step => 15  %></p>

<p><label for="worklog_project_id">Project</label><br/>
<%= 
    collection_select("worklog", "project_id", @projects, "id", "short", {:include_blank => true})
%></p>

<!-- FIXME better display -->
<p><label for="worklog_worker_id">Done by</label><br/>
<%= @worker.short %></p>
<%= hidden_field 'worklog', 'worker_id' %></p>

<p><label for="worklog_duration">Duration</label><br/>
<%= text_field 'worklog', 'duration'  %></p>

<p><label for="worklog_description">Description</label><br/>
<%= text_area 'worklog', 'description'  %></p>
<!--[eoform:worklog]-->

